package com.util.sql.test;

import com.entity.Artical;
import com.util.json.Result;
import com.util.sql.BaseDao;
import com.util.sql.PageModel;

import java.util.List;

public class ArticalImpl extends BaseDao<Artical> {
    public void a(Object o ){
        List<Object> list = (List<Object>) o;
        b((List<Object>)o);
    }
    public void b(List<Object> list){

    }
    public void c(){

    }

    public static void main(String[] args) {
        ArticalImpl artical = new ArticalImpl();
        List<Artical> list =  artical.queryPage(1,30,new Artical());
        Class cla = artical.getClass();
        System.out.println(cla.getTypeName());
        Class clb = list.getClass();
        System.out.println(clb.getCanonicalName());
        System.out.println(clb.getTypeName().contains("map"));
//        System.out.println(list);
   // System.out.println(Result.successObj(list));
//        PageModel<Artical> model = artical.queryModel(1,2,new Artical());
//        System.out.println(Result.successObj(model));
        String s = "src=\"http://www.baidu.com\"";
       // System.out.println(s.replace("a","1"));
       s =  s.replace("123","456");
        System.out.println(s);
        PageModel p  = artical.queryModel(1,30,new Artical());
        System.out.println(Result.successModelObj(p));

    }
}
